const express = require('express')
const router = express.Router()
const noticeHandle = require('./handle')
const multipart = require('connect-multiparty')
const multipartMiddleware = multipart()

router.post('/notice', multipartMiddleware, noticeHandle.addNotice)
router.post('/notice/agree', multipartMiddleware, noticeHandle.AgreeNotice)
router.post('/notice/reject', multipartMiddleware, noticeHandle.RejectNotice)
router.get('/notice', multipartMiddleware, noticeHandle.getNotice)
router.get('/list', multipartMiddleware, noticeHandle.getFriend)
module.exports = router